import java.util.Scanner;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: ken
 * Date: 2023-10-18
 * Time: 18:06
 */
public class Test {
    public static void main(String[] args) {
        Scanner input = new Scanner(System.in);
        int n = input.nextInt();
        for(int i = 0;i < n; i++) {
            int j = 0;
            for(j = 0;j < n; j++) {
                if((i == j ) || (i + j == n-1)) {
                    System.out.print("*");
                } else {
                    System.out.print(" ");
                }

            }
            System.out.println();
        }
    }
    public static void main6(String[] args) {
        Scanner input =  new Scanner(System.in);
        int i = input.nextInt();
        String ar2 = input.nextLine();

                String ar = input.nextLine();
        System.out.println(i);
        System.out.println(ar);
    }
    public static void main5(String[] args) {
        Scanner input = new Scanner(System.in);
        int i = input.nextInt();
        if(i < 18) {
            System.out.println("少年");
        } else if (i < 28) {
            System.out.println("青年");
        } else if(i < 55) {
            System.out.println("中年");
        } else {
            System.out.println("老年");
        }
    }
    public static void main4(String[] args) {
        Scanner input =new Scanner(System.in);
                int i = input.nextInt();
        int a = 2;
        int count = 0;
        for(a = 2; a < i; a++) {
            if(i % a == 0) {
                count++;
                System.out.println("不是素数");
                break;
            }
        }
        if(count == 0) {
            System.out.println("是素数");
        }
    }
    public static void main3(String[] args) {
        int i = 3;
        System.out.print(1+"  ");
        System.out.print(2+"  ");
        while(i <= 100) {
            int j =0;
            int count = 0;
            for (j = 2; j < i; j++) {
                if(i % j == 0) {
                    count = 1;
                    break;
                }
            }
            if(count == 0) {    //循环到最后都没有就算素数
                System.out.print(i  +"  ");
                //System.out.println(1/2);
            }
            i++;
        }
    }
    public static void main2(String[] args) {
       int i = 1000;
       int count =0;
        while(i<=2000) {
            if((i % 4 == 0 && i % 100!=0) || i % 400==0) {
                count++;
            }
                i++;
        }
        System.out.println(count);
    }
    public static void main1(String[] args) {
        int i = 1;
        int count = 0;
        while(i<=100) {
            if(i%10==9) {
                count++;
            }
            if (i/10==9) {
                count++;
            }
            i++;
        }
        System.out.println(count);
    }
}
